<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<section class="tab-pane fade" id="add" role="tabpanel">

    <form th:action="@{/admin/member/save}" method="post" enctype="multipart/form-data" >

        <div class="form-group">
            <label for="addMemberName">姓名</label>
            <input id="addMemberName"
                   class="form-control"
                   name="memberName"
                   type="text" placeholder="请输入姓名..."/>
        </div>

        <div class="form-group">
            <label for="addMemberStudentNum">学号</label>
            <input id="addMemberStudentNum"
                   class="form-control"
                   name="memberStudentNum"
                   type="text" placeholder="请输入学号..."/>
        </div>

        <label for="addMemberPicture"> 请选择图片</label>
        <div class="input-group mb-3">
            <div class="custom-file">
                <input type="file" class="custom-file-input" id="addMemberPicture" name="memberPicture">
                <label class="custom-file-label" for="addMemberPicture">Choose file</label>
            </div>
        </div>

        <div class="form-group">
            <label for="addMemberIntroduce">介绍</label>
            <textarea id="addMemberIntroduce" class="form-control"
                      name="addMMemberIntroduce" type="text" placeholder="请输入介绍..."></textarea>
        </div>

        <div class="form-group">
            <label for="addMemberCategoryId">职位</label>
            <select id="addMemberCategoryId"
                    class="form-control"
                    name="memberCategoryId"
                    type="text" th:object="${result.data}">
                <option th:each="category,categoryState:*{memberCategoryList}"
                th:value="${category.memberCategoryId}"
                th:text="${category.memberCategoryName}"></option>

            </select>
        </div>
        <div>

        </div>

        <div class="form-group">
            <label for="addMemberMajor">专业</label>
            <input id="addMemberMajor" class="form-control"
                   name="memberMajor" type="text" placeholder="请输入专业...">
        </div>

        <div class="form-group">
            <label for="addMemberGrade">年级</label>
            <input id="addMemberGrade" class="form-control"
                   name="memberGrade" type="text" placeholder="请输入专业...">
        </div>

        <button type="submit" class="mb-5 btn btn-outline-success">提交</button>

    </form>

</section>
</html>